var mINFO = 8, mALERTE = 1, mOK = 4, mERREUR = 2

function ajouter_message(message, type) {
	_class = ""
	
	switch (type) {
		case mALERTE:
			_class = 'mAlerte'; break
		case mERREUR:
			_class = 'mErreur'; break
		case mOK:
			_class = 'mOk'; break
		case mINFO:
			_class = 'mInfo'; break
	}
	
	$('#zoneMessages').prepend($(document.createElement('div')).html(message).addClass(_class).click(function() {
		$(this).fadeOut(function() {
			$(this).remove()
		})
	}).hide().fadeIn())
}